<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<!DOCTYPE html>
<html style="overflow-x:hidden;overflow-y:auto;"><head>
<title>地址管理</title>		
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">        
<!-- Mobile Devices Support @begin -->
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta name="apple-mobile-web-app-capable" content="yes"> <!-- apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

<link href="${ctxStatic }/site/themes/DianShangMuBan/css/boilerplate.css" rel="stylesheet" type="text/css">
<link href="${ctxStatic }/site/themes/DianShangMuBan/css/css.css" rel="stylesheet" type="text/css">
<script src="${ctxStatic }/site/themes/DianShangMuBan/js/jquery.min.js"></script>
<script src="${ctxStatic }/site/themes/DianShangMuBan/js/flat-ui.min.js"></script>
<script src="${ctxStatic }/site/themes/DianShangMuBan/js/application.js"></script>
<script type="text/javascript" src="${ctxStatic }/shopping/pccs.js"></script>
</head>

<body>
<div class="body">
<%-- <div class="titlew" style="background:#E4393C;" >
	收货地址管理
	<a href="${ctxFront }/site/shopping/address?uid=${uid}&wechatId=${wechatId}&style=2&productId=${productId}&productNumber=${productNumber}" style="color:#FFFFFF;float: right; padding-right: 10px;">新增</a>
</div> --%>
	<dl class="order_dl2">
			<dt style="padding-left:40%">
				<a href="${ctxFront }/site/shopping/address?uid=${uid}&wechatId=${wechatId}&style=2&productId=${productId}&productNumber=${productNumber}&type=2">
					<span class="anniu3 Orange">+ 新建地址</span>
				</a>
			</dt>
	</dl>
  <c:forEach items="${addresseList}" var="address">
  <section class="w-goods" >
  	<c:if test="${way eq 1}">
	    <a href="${ctxFront }/site/shopping/createCartPay?uid=${uid}&wechatId=${wechatId}&addressId=${address.id}" class="clearfix">
	        <dl class="order_dl2">
				<dt style="float:left; width:10%">
					<c:if test="${address.selected eq 1 }">
			       		<span class="icon_enter"></span>
					</c:if>
					<c:if test="${address.selected ne 1 }">
			       		<span>&nbsp;</span>
					</c:if>
		    	</dt>
		    	<dt style="float:left; width:80%">
		       		<p><span class="icon_name font_left">&nbsp;&nbsp;${address.name}</span>
		       		<span class="icon_tel  font_right">&nbsp;${address.mobile}</span> </p>
		       		<p class="clear font999" style="padding:2%">${address.province}${address.city}${address.county}${fn:substring(address.detail,0,13)}</p>
		    	</dt>
		    </dl>
	    </a>
  	</c:if>
  	<c:if test="${way eq null}">
    	<a href="${ctxFront }/site/shopping/createPay?uid=${uid}&wechatId=${wechatId}&addressId=${address.id}&productId=${productId}&productNumber=${productNumber}&type=2" class="clearfix">
        	<dl class="order_dl2">
				<dt style="float:left; width:10%">
					<c:if test="${address.selected eq 1 }">
		        		<span class="icon_enter"></span>
					</c:if>
					<c:if test="${address.selected ne 1 }">
		        		<span>&nbsp;</span>
					</c:if>
	      		</dt>
	      		<dt style="float:left; width:80%">
	        		<p><span class="icon_name font_left">&nbsp;&nbsp;${address.name}</span>
	        		<span class="icon_tel  font_right">&nbsp;${address.mobile}</span> </p>
	        		<p class="clear font999" style="padding:2%">${address.province}${address.city}${address.county}${fn:substring(address.detail,0,13)}</p>
	      		</dt>
	    	</dl>
    	</a>
  	</c:if>
  </section>
  </c:forEach>
</div>
</body>
</html>
